package com.yanqu.road.entity.enums.activity.jiuzhou;

public enum eJiuZhouRoomStateType {

    Init("房间数据初始化", 0),

    Deploy("备战期", 1),

    Battle("战斗期", 2),

    End("已结束", 3),

    ;

    private String name;

    private int intValue;

    eJiuZhouRoomStateType(String name, int value) {
        intValue = value;
        this.name = name;
    }

    public int getValue() {
        return intValue;
    }

    public String getName() {
        return name;
    }

    public static eJiuZhouRoomStateType forValue(int value) {
        for (eJiuZhouRoomStateType type : eJiuZhouRoomStateType.values()) {
            if (type.intValue == value) {
                return type;
            }
        }
        return null;
    }
}
